﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DE.Class;
using System.Runtime.Serialization;

namespace UserDAL
{
    [DataContract]
    public class UserData:BaseEntityData
    {
        private string username,name,password;
        private float requestedDistance;
        private string image;
        private int userid;
        private string email;
        private string accType;

        public UserData(int iuserid,string iname, float irequestedDistance, string iimage, string iusername, string ipassword, string iemail,string iaccType)
        {
            userid = iuserid;
            password = ipassword;
            username = iusername;
            name = iname;
            requestedDistance = irequestedDistance;
            image = iimage;
            email = iemail;
            accType = iaccType;
        }

        public UserData(int iuserid, string iname, float irequestedDistance, string iimage,string iaccType)
        {
            userid = iuserid;
            name = iname;
            requestedDistance = irequestedDistance;
            image = iimage;
            accType = iaccType;
        }

        [DataMember]
        public int UserID
        {
            get { return userid; }
            set { userid = value; }
        }

        [DataMember]
        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        [DataMember]
        public string UserName
        {
            get { return username; }
            set { username = value; }
        }

        [DataMember]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        [DataMember]
        public float RequestedDistance
        {
            get { return requestedDistance; }
            set { requestedDistance = value; }
        }

        [DataMember]
        public string Image
        {
            get { return image; }
            set { image = value; }
        }

        [DataMember]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        [DataMember]
        public string AccountType
        {
            get { return accType; }
            set { accType = value; }
        }
    }
}
